package com.effective.java.clone;

public class CloneNotSupported01 {

	public static void main(String[] args) throws CloneNotSupportedException {

		CloneNotSupported01 instance1 = new CloneNotSupported01();
		CloneNotSupported01 instance2 = (CloneNotSupported01) instance1.clone();

		// this is never going to happen since the failure of implementing the
		// Cloneable interface leads to a CloneNotSupportedException
		System.out.println("instance 1 = " + instance1);
		System.out.println("instance 2 = " + instance2);
	}
}
